<script setup>
import { dateZhCN, zhCN } from "naive-ui";
import store from "./store/index.js";

const locale = ref(zhCN);
const dateLocale = ref(dateZhCN);
const s = store();
inject({
  store: () => s,
});
</script>

<template>
  <n-config-provider
    abstract
    inline-theme-disabled
    :locale="locale"
    :date-locale="dateLocale"
  >
    <router-view></router-view>
  </n-config-provider>
</template>
